package com.hhf.rpa.file.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hhf.rpa.file.config.FileConfig;
import com.hhf.rpa.file.model.BaseFile;
import com.hhf.rpa.file.pojo.form.BaseFileForm;
import org.springframework.web.multipart.MultipartFile;

public interface BaseFileService {
    BaseFile saveFile(MultipartFile file, FileConfig fileConfig);
    boolean isExists(String fileName);
    boolean deleteById (Integer fileId);
    Page<BaseFile> selectPage(BaseFileForm baseFileform);

    void deleteFile(String fileName, String storagePath);
}
